package thesis.filesharing.bo.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import thesis.filesharing.bo.SemesterBO;
import thesis.filesharing.dao.SemesterDAO;
import thesis.filesharing.model.Semester;

@Service
public class SemesterBOImpl implements SemesterBO {
	
	@Autowired
	private SemesterDAO semesterDAO;
	
	@Override
	public List<Semester> listSemester() {
		return semesterDAO.listSemester();
	}

	@Override
	public void updateCurrentSemester(Integer semesterName) {
		semesterDAO.updateCurrentSemester(semesterName);
	}

	@Override
	public Semester getCurrentSemester() {
		return semesterDAO.getCurrentSemester();
	}
}
